<template>
 <div class="container" >
    <div v-text="userName"></div>
    <div v-html="userHtml"></div>
    <div v-text="userHtml"></div>
    <a href="#" :title="userName">aabb</a>
    <a href="#" v-on:click="show()">点击</a>
    <a href="#" v-on:click="show1()">点击</a>
 </div>
</template>
<script>
 export default {
 name: '',
 data: function(){
 return {
    userName:"用户名称",
    userHtml:"<H1>hollow</H1>"
 }
 },
 methods:{
    show:function(){
        alert("你是一个大学生")
    },
    show1:function(){
        alert("你是一个小学生")
    }
 }
 }
</script>
<style scoped>
html,
 body, 
 #app{
 height: 100%;
 }
 .container {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 width: 100%;
 height: 100%;
 background-color: aliceblue;
 }
 .tr{
 width: 200px;
 flex-basis: 50px;
 display: flex;
 flex-direction: row;
 justify-content: space-between;
 background-color: beige;
 align-items: center;
 }
 .second{
 background-color: aqua;
 }
</style>